enum RestCode {
  connect(100, "connect"),
  successConnect(101, "successConnect"),
  failConnect(102, "failConnect"),
  sendMsg(103, "sendMsg"),
  successSendMsg(104, "successSendMsg"),
  failSendMsg(105, "failSendMsg"),
  ;

  final int _code;
  final String _msg;

  const RestCode(this._code, this._msg);

  int get code => _code;

  String get msg => _msg;
}
